<%--
  Created by IntelliJ IDEA.
  User: eaglet
  Date: 2024/3/18
  Time: 8:59
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改用户信息</title>
</head>
<body>
  <div>
    <div>修改用户信息</div>
    <div>
      <form action="updateUserInfoByIdServlet" method="post">
         <div><input type="hidden" name="user_id" value='<c:out value="${user.user_id}" />'></div>
          <div><c:out value="${user.username}"></c:out></div>
          <div>性别：<select id="sex" name="sex">
              <option value="男">男</option>
              <option value="女">女</option>
          </select></div>
          <div>年龄：<input type="number" name="age" value="<c:out value="${user.age}" />" ></div>
          <div>家庭住址：<input type="text" name="address" value="<c:out value="${user.address}" />" ></div>
          <div>用户权限：<select id="role_id" name="role_id">
              <option value="1">用户</option>
              <option value="2">管理员</option>
          </select></div>
          <div><input type="submit" value="修改信息"></div>
      </form>
    </div>
  </div>
</body>
</html>
